<?php get_header(); ?>
    

    <?php include ('menu.php') ?>

    <div class="main-content">
        <div class="home">
            <div class="offers">
                <h2>PRODUCTOS</h2>
                <div class="offer-item">
                    <ul>                
                    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); 
                        $imagen=postImage($post->ID);
                        $titulo=$post->post_title;
                        $precio=get_catalog_price(get_the_ID());
                        $link=$post->post_name;                    
                        
                        include ('item-unit.php');                        
                    ?>

                    <?php endwhile; else: ?>
                    <p>Sorry2, no posts matched your criteria.</p>
                    <?php 
                    endif;
                    ?> 
                    </ul>
                </div>
                <div class="clearfix"></div>                
            </div>
        </div>
    </div>

    <? include('sidebar-right.php') ?>
</div>
<?php get_footer(); ?>
